package cate.common.table.activity.warorder.row;

import cate.common.table.ERow;
import cate.common.table.XSSFRowWrap;
import easy.java.dev.note.NoteClass;
import easy.java.dev.note.NoteField;

@NoteClass("等级奖励")
public class WarorderLevelRwdRow extends ERow {

    @NoteField("等级")
    public int level;

    @NoteField("总经验")
    public int totalExp;

    @NoteField("基础奖励")
    public String baseRwdStr;

    @NoteField("进阶奖励")
    public String advanceRwdStr;

    @NoteField("分组")
    public int group;

    @Override
    public void parse(XSSFRowWrap xrw) {
        super.parse(xrw);
        this.id = xrw.getInteger("ID", 0);
        this.level = xrw.getInteger("等级", 0);
        this.totalExp = xrw.getInteger("总经验", 0);
        this.baseRwdStr = xrw.getString("基础奖励");
        this.advanceRwdStr = xrw.getString("进阶奖励");
        this.group = xrw.getInteger("分组", 0);
    }
}
